# coding=utf-8
from rest_framework import viewsets
from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import filters
from backend.views.StandardResultsSetPagination import *
from backend.serializers.SugonSerializer import *
from backend.models.SugonInfo import *


class SugonInfoSet(viewsets.ModelViewSet):
    queryset = SugonInfo.objects.all()
    serializer_class = SugonSerializer
    pagination_class = StandardResultsSetPagination
    filter_backends = (DjangoFilterBackend, filters.OrderingFilter)
    filter_fields = serializer_class.Meta.fields
